package com.ruoyi.web.controller.ccc3gc;

import com.ccc3gc.mysystem.service.FileService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


@RestController
@RequestMapping("/api/file")
public class FileConterller {
    @Autowired
    public FileService fileService;
    @PostMapping("/uploadImage")
    public AjaxResult uploadImage(MultipartFile multipartFilte){
        String image = fileService.uploadImage(multipartFilte);
        return AjaxResult.success(image);
    }
}
